Hello, and welcome to
this demonstration on using Assign activity in Studio. In this video, you will create a workflow that: asks the
user to input the name, assigns it to a string variable
using an Assign activity, displays the input
name along with an additional text
in a message box. Let's begin. Search for an input dialog activity
in the activities panel, and drag and drop it
in the designer panel. Rename the sequences
using Assign activity, and add an annotation to it. Also, rename the input dialog
activity as user input. In double-quotes,
enter the title text, "Question" in the
dialogue title, and label text, what's your
name in the input label box? Now, navigate to
the variables panel and create a variable called FirstName with
variable type as string. Set its scope to sequence
using Assign activity. Close the variables panel. In the properties panel of the user input dialog activity, enter the variable FirstName
in its result property. Now, drag and drop an
Assign activity below the input dialog activity
and rename it as message. In the two text box, press Control plus K to
create a new variable. Name the variable as message. Click the ellipsis icon of the value field to open the
expression editor window. In this expression
editor window, enter the expression
in double-quotes, "Hello, how can I assist you?" Followed by a plus sign and the variable FirstName.
Click "Okay." Search for a message
box activity in the activities panel, and drag and drop it below the Assign activity.
Give a name to it. Enter the variable
message in its text box. Click "Save" to
save the project, and select run from
the debug file menu to run the project. Enter a name, say, Andrew and then click "Okay." The output will be, Hello, how can I assist you, Andrew? This concludes our
demonstration on using Assign activity in Studio. It is encouraged that you create the workflow as demonstrated
and try this activity. Thank you for watching.